export const routes = [
    {
        path: '/',
        name: 'home', // 首页
        component: () => import('@/views/Home.vue')
    },
    {
        path: '/profile',
        name: 'profile', // 个人信息页
        component: () => import('@/views/Profile.vue')
    },
    {
        path: '/claim',
        name: 'claim', // 认领活动页
        component: () => import('@/views/Claim.vue')  
    },
    {
        path: '/statement',
        name: 'statement', // 爱心报表页
        component: () => import('@/views/Statement.vue')
    },
    {
        path: '/documentary',
        name: 'documentary', // 服务纪实页
        component: () => import('@/views/Documentary.vue')
    },
    {
        path: '/my',
        name: 'my', // 我的服务页
        component: () => import('@/views/My.vue')
    },
    {
        path: '/particulars/:id',
        name: 'particulars', // 服务详情页
        component: () => import('@/views/Particulars.vue')
    },
    {
        path: '/apply',
        name: 'apply', // 活动报名页
        component: () => import('@/views/Apply.vue')
    },
    {
        path: '/serviceDetails/:id',
        name: 'serviceDetails', // 我的服务页
        component: () => import('@/views/ServiceDetails.vue')
    },
    {
        path: '/:pathMatch(.*)*', 
        name: 'NotFound', // 404页
        component: () => import('@/views/NotFound.vue')
    }
]